package com.niuwa.p2p.service.impl.channel;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.niuwa.p2p.dao.channel.LenderFileCatalogDao;
import com.niuwa.p2p.entity.channel.LenderFileCatalog;
import com.niuwa.p2p.service.channel.ILenderFileCatalogService;
import com.niuwa.p2p.vo.channel.ChannelCatalogLenderCatalogVo;



@Service
public class LenderFileCatalogImpl implements ILenderFileCatalogService{
	@Autowired
	private LenderFileCatalogDao lenderFileCatalog;
	/**
	 *  保存借款文件目录
	 * @param lender
	 */
	@Override
	public void saveLenderFileCatalog(LenderFileCatalog lender) {
		lenderFileCatalog.insert(lender);
	}

	/**
	 * 查询所有外访文件
	 * @param corpCode
	 * @return
	 */
	@Override
	public List<ChannelCatalogLenderCatalogVo> querylenderFile(String corpCode) {
		List<ChannelCatalogLenderCatalogVo> channelCatalog=new ArrayList<ChannelCatalogLenderCatalogVo>();
		channelCatalog=lenderFileCatalog.selectByCorpCode(corpCode);
		return channelCatalog;
	}
}
